package net.spatula.tally_ho.model;

/* Copyright 2006 Nicklas R Johnson
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 
 * 
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
 * See the License for the specific language governing permissions and 
 * limitations under the License.
 */

import java.io.Serializable;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="article_message_root")
public class ArticleMessageBoardRoot implements Serializable {
	@Id
	@Column(name="root_id")
	private long rootId;

	@Column(name="post_count_24hr")
	private long postCount24hr;

	@Column(name="posting_permitted")
	private long postingPermitted;

	@Column(name="post_count")
	private long postCount;

	@Column(name="last_post")
	private Timestamp lastPost;

	@Column(name="root_source")
	private long rootSource;

	private static final long serialVersionUID = 1L;

	public ArticleMessageBoardRoot() {
		super();
	}

	public long getRootId() {
		return this.rootId;
	}

	public void setRootId(long rootId) {
		this.rootId = rootId;
	}

	public long getPostCount24hr() {
		return this.postCount24hr;
	}

	public void setPostCount24hr(long postCount24hr) {
		this.postCount24hr = postCount24hr;
	}

	public long getPostingPermitted() {
		return this.postingPermitted;
	}

	public void setPostingPermitted(long postingPermitted) {
		this.postingPermitted = postingPermitted;
	}

	public long getPostCount() {
		return this.postCount;
	}

	public void setPostCount(long postCount) {
		this.postCount = postCount;
	}

	public Timestamp getLastPost() {
		return this.lastPost;
	}

	public void setLastPost(Timestamp lastPost) {
		this.lastPost = lastPost;
	}

	public long getRootSource() {
		return this.rootSource;
	}

	public void setRootSource(long rootSource) {
		this.rootSource = rootSource;
	}

}
